package org.example.pk1;

import java.util.StringJoiner;

public record ProductRecord(Integer id, String name, Integer qty) implements PrintInterface {


    @Override
    public void print() {
        StringJoiner sj = new StringJoiner(", ", "ProductRecord[", "]");
        sj.add("id=" + id);
        sj.add("name=" + name);
        sj.add("qty=" + qty);
        System.out.println(sj);
    }
}
